﻿using System;
using System.ComponentModel.DataAnnotations.Schema;
using Volo.Abp.Domain.Entities.Auditing;
using Volo.Abp.Identity;

namespace Edu.Entitys
{
    public class AppUserAchievement : FullAuditedAggregateRoot<Guid>
    {

        public Guid UserId
        {
            get;
            set;
        }


        /// <summary>
        /// 获得时间
        /// </summary>
        public DateTimeOffset? CreatedTime
        {
            get;
            set;
        }

        /// <summary>
        /// 进度
        /// </summary>
        public int Progress
        {
            get;
            set;
        }

        /// <summary>
        /// 勋章id
        /// </summary>
        public Guid AchievementId
        {
            get;
            set;
        }


        [NotMapped]
        public AppUser User
        {
            get;
            set;
        }

        [NotMapped]
        public IdentityUser IdentityUser
        {
            get;
            set;
        }
        /// <summary>
        /// 勋章id
        /// </summary>
        public AppAchievement Achievement
        {
            get;
            set;
        }
    }
}